#include "Heap.h"
void test()
{
	HP* Heap = (HP*)malloc(sizeof(HP));
	INItHeap(Heap);
	PushHeap(Heap, 2);
	PushHeap(Heap, 10);
	PushHeap(Heap, 29);
	PushHeap(Heap, 5);
	PushHeap(Heap, 6);
	PushHeap(Heap, 18);
	PushHeap(Heap, 93);
	PushHeap(Heap, 100);
	PrintHeap(Heap);

	PopHeap(Heap);
	PrintHeap(Heap);

	PopHeap(Heap);
	PrintHeap(Heap);

	PopHeap(Heap);
	PrintHeap(Heap);

	PopHeap(Heap);
	PrintHeap(Heap);

	PopHeap(Heap);
	PopHeap(Heap);
	PopHeap(Heap);
	PopHeap(Heap);
	PrintHeap(Heap);

	DestroyHeap(Heap);
}

int main()
{
	test();
	return 0;
}